<template>
<!-- 新歌单下的li 内容 -->
  <!-- <router-link class="rank-item" tag="li" :to="`${path}/${rank.id}`"> -->
  <router-link class="rank-item" tag="li" :to="`${path}/${rank.id}`">
    <img :src="rank.coverImgUrl" />
  </router-link>
</template>
<script>
export default {
   props:{
       rank:{  //song是对象
           type:Object,
           default:function(){
               return {}
           }
       },
       path:{
           type:String,
           default:"",
       }
   },
   created(){
    //    console.log("rank==>",this.rank)
    //    console.log("art==>",this.rank.tracks)
   },
}
</script>
<style lang="less" scoped>
.rank-item {
    flex: 1;
    padding: 10px 0px;
    margin-left: 12px;
    border-bottom: 1px solid rgb(235, 232, 232);
    img {
        width: 100px;
        border-radius: 8px;
    }
    
}
</style>